package faq.biz.impl;

import java.util.List;

import org.apache.ibatis.session.SqlSession;

import faq.biz.ClassesBiz;
import faq.dao.ClassesDao;
import faq.entity.Classes;
import faq.util.MybatisUtil;

public class ClassesBizImpl implements ClassesBiz{

	@Override
	public List<Classes> getAll() {
		SqlSession sess = MybatisUtil.openSession();
		try {
			ClassesDao dao=	sess.getMapper(ClassesDao.class);
			List<Classes> classeslist=dao.getAll();
			return classeslist;
		} finally {
			sess.close();
		}
	}

}
